package org.example.feignclient.impl;

import org.example.entity.Book;
import org.example.feignclient.BookFeignClient;
import org.springframework.stereotype.Component;

@Component
public class BookFeignClientFallBack implements BookFeignClient {
    @Override
    public Book findBookById(int bid) {
        Book book = new Book();
        book.setTitle("服务降级处理事例，类似于@HystrixCommand处理机制，二者任选其一即可");
        return book;
    }
}
